home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
sr
/
info.lha
/
info-sr.1992
/
000021_gmt _Fri Nov 20 14:24:34 1992.msg
< prev
next >
Wrap
Text File
|
1993-07-24
|
2KB
|
44 lines
Received: from owl.cs.arizona.edu by optima.cs.arizona.edu (5.65c/15) via SMTP
id AA06698; Fri, 20 Nov 1992 14:24:41 MST
Date: Fri, 20 Nov 1992 14:24:34 MST
From: "Gregg Townsend" <gmt>
Message-Id: <199211202124.AA02478@owl.cs.arizona.edu>
Received: by owl.cs.arizona.edu; Fri, 20 Nov 1992 14:24:34 MST
To: eric@cs.sfu.ca
Subject: Re: Priorities in SR
Cc: info-sr
There was a problem in the scheduler when awakening blocked processes.
It is fixed by adding a few lines of code to rts/process.c (see below).
There is another unresolved problem when processes of different priorities
are blocked simultaneously waiting for input from the same operation class,
for example when using an array of semaphores or ops. I don't think this
problem affects your program.
We're not aware of any problems involving the "by" clause of an input
statement, but if you have a small example that shows an error we'll be
glad to look at it.
Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
+1 602 621 4325 gmt@cs.arizona.edu 110 57 16 W / 32 13 45 N / +758m
------------------------------------------------------------------------------
*** /usr/sr/v2/rts/process.c Wed Aug 19 20:19:46 1992
--- /usr/gmt/v2/rts/process.c Fri Nov 20 10:48:33 1992
***************
*** 457,462 ****
--- 457,467 ----
Procq *pl;
Proc pr;
{
+ if (pl == &sr_ready_list) {
+ sr_add_readyq (pr);
+ return;
+ }
+
LOCK_QUEUE ("sr_enqueue");
if ((pl == NULL) || (pr == NULL))